package de.voegel.model.entity;

public class BirdEntity {

	private final Integer id;
	private final String dtName;
	private final String englName;
	private final String latName;
	private final String kategorie;

	public BirdEntity(Integer id, String dtName, String englName,
			String latName, String kategorie) {
		super();
		this.id = id;
		this.dtName = dtName;
		this.englName = englName;
		this.latName = latName;
		this.kategorie = kategorie;
	}

	public Integer getId() {
		return this.id;
	}

	public String getDtName() {
		return dtName;
	}

	public String getEnglName() {
		return englName;
	}

	public String getLatName() {
		return latName;
	}

	public String getKategorie() {
		return kategorie;
	}

	@Override
	public String toString() {
		return dtName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((latName == null) ? 0 : latName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BirdEntity other = (BirdEntity) obj;
		if (latName == null) {
			if (other.latName != null)
				return false;
		} else if (!latName.equals(other.latName))
			return false;
		return true;
	}

}
